package cn.itsource.org.service;

import cn.itsource.basic.service.BaseService;
import cn.itsource.basic.util.AjaxResult;
import cn.itsource.org.Dto.LoginDto;
import cn.itsource.org.domain.User;
import cn.itsource.org.query.UserQuery;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface IUserService extends BaseService<User, UserQuery> {
//    发短信
    AjaxResult sendmobilecode(String phone, HttpServletRequest request);
//    检测手机号是否存在
    AjaxResult checkphone(String phone);
//    注册接口
     void  register (User user);

    AjaxResult login(LoginDto loginDto);
}